<%@page import="com.qf.model.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body style="background-color: aquamarine;">
	<div
		style="text-align: center; height: 100px; background-color: goldenrod; margin-bottom: 50px;">
		<h1 style="line-height: 100px;">注 册 界 面</h1>
	</div>
	<div style="margin-left: 400px;">
		
		<form action="${pageContext.request.contextPath}/contactServlet?action=addContact"
			method="post"
			style="width: 300px; height: 400px; border: 2px solid darkblue;">
			<div>
				<span style="color: red; font-size: 3">${error }</span>
			</div>
			<div style="text-align: center; margin-top: 10px;" >

				姓名:<input type="text" name="cname" value="${cname}" required="required"/>
			</div>
			<div style="text-align: center; margin-top: 10px;">
				电话:<input type="text" name="ctel" value="${ctel}" required="required"/>
			</div>
			<div style="text-align: center; margin-top: 10px;">
				地址:<input type="text" name="caddress" value="${caddress }" required="required" />
			</div>
			<div style="text-align: center; margin-top: 10px;">
				备注:<input type="text" name="cremark" value="${cremark }" />
			</div>
			<div style="text-align: left; margin-top: 10px;">
				请选择通讯录:　　<select name="tid">
					<option value="1">好友</option>
					<option value="2">亲戚</option>
					<option value="3">知己</option>
					<option value="4">同学</option>
					<option value="5">同事</option>
				</select>
			</div>
			<div style="text-align: left; margin-top: 10px;">
				<span>当前用户:${user.uname }</span>
			</div>
			
			<div style="text-align: center;">
				<input type="submit" value="确认注册" style="margin-right: 30px" /> 
				<input type="reset" value="重置信息" />
			</div>
		</form>
	</div>

</body>
</html>